package com.heyun.mapper;

import com.heyun.entity.dto.GradesDTO;
import com.heyun.entity.pojo.PointsLog;
import com.heyun.entity.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StudentMapper {
    SubjectVO[] getSubData(@Param("userId") String userId);

    GradeVO[] getGrade(@Param("userId") String userId,@Param("timeId") String id);

    ExpVO[] getExp(@Param("userId") String userId);

    int delExp(@Param("expId") String expId);

    Homework[] getHomeworkOfStudent(@Param("userId") String userId);

    SignIn[] getSignIns(@Param("userId") String userId);
    GradesDTO[] getGrades(@Param("userId") String userId);
    int SignIn(@Param("userId") String userId);
    int updatePoints(@Param("userId") String userId,@Param("subjectId") String subjectId, @Param("points") double points);
    SignIn getSignIn(@Param("userId") String userId);
    int addLog(@Param("pl") PointsLog pl);
    StudentLogVO[] getLogs(@Param("userId") String userId);
//    SignIn[] getSignIns(@Param("userId") String userId);
}
